//
//  LOLSegmentView.h
//  LOL_Little_Box
//
//  Created by dllo on 16/3/31.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import <UIKit/UIKit.h>
@protocol LOLSegmentViewDelegate <NSObject>

- (void)didSelectIndex:(NSInteger)index;

@end
@interface LOLSegmentView : UIView
<UIScrollViewDelegate>

@property (nonatomic, assign) BOOL animation;

@property (nonatomic, strong) NSArray *titleArray;//标题title
@property (nonatomic, strong) NSArray *showControllerArray;//每项对应的UIViewController
@property (nonatomic, weak) id <LOLSegmentViewDelegate> delegate;

-(instancetype)initWithFrame:(CGRect)frame andHeaderHeight:(CGFloat )headerHeight andTitleArray:(NSArray *)titleArray andShowControllerNameArray:(NSArray *)showControllerArray;
@end
